
#pragma once

#include "NLua.h"

class NLuaState;
class NLuaThread  
{	
	public:
		bool isOK(void) const{ return m_bOK; };
		operator lua_State*(){ return  m_pLuaThread; };
		lua_State* GetStatePtr(void) const{ return m_pLuaThread; };
	public:
		NLuaThread(NLuaState& in_LuaState);
		virtual ~NLuaThread(void);
	private:
		lua_State* m_pLuaThread;
		bool m_bOK;
	private:
		bool Create(NLuaState& in_LuaState);
};

